<template>
	<view class="uploadFile" >
		<uni-file-picker class="uploadFile-upload" ref="files" :auto-upload="false"></uni-file-picker>
		<view class="uploadFile-box" @tap="upload">
			<image src="@/static/uploadImg/uploadFile.png" mode="" class="uploadFile-box-img"></image>
			<text class="uploadFile-box-name">上传附件</text>
		</view>
	</view>
</template>

<script>
	export default {
		data () {
			return {
				
			}
		},
		methods:{
			// 上传
			upload(){
				this.$refs.files.upload()
			}
		}
	}
</script>

<style lang="less" scoped>
	.uploadFile{
		width: 128rpx;
		height: 128rpx;
		background: #F5F6FA;
		border-radius: 12rpx;
		&-upload{
			display: none;
		}
		&-box{
			width: 128rpx;
			height: 128rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			flex-direction: column;
			&-name{
				font-family: PingFangSC, PingFang SC;
				font-weight: 300;
				font-size: 20rpx;
				color: #666666;
				margin-top: 10rpx;
			}
			&-img{
				width: 32rpx;
				height: 32rpx;
			}
		}
	}
</style>